What is an if statement used for in a program